<h1>New page</h1>

<%= error_messages_for :page %>

<% form_for(@page) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Content</b><br />
    <%= f.text_area :content %>
  </p>

  <p>
    <b>Is featured</b><br />
    <%= f.check_box :is_featured %>
  </p>

  <p>
    <b>Shown in footer</b><br />
    <%= f.check_box :shown_in_footer %>
  </p>

  <p>
    <b>Do hide</b><br />
    <%= f.check_box :do_hide %>
  </p>

  <p>
    <b>Enabled</b><br />
    <%= f.check_box :is_enabled %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', pages_path %>
